export const jsonpGet = (that, options) => {
  options.key = "3U6BZ-3XXL3-BVE33-3VP6U-S6H7E-DQBKO"
  options.output = "jsonp"

  return new Promise((resolve, reject) => {
    that.$jsonp(
      "https://apis.map.qq.com/ws/geocoder/v1/?",
      options
    ).then(res => {
      resolve(res)
    }).catch(error => {
      reject(error)
    })
  })
}